package com.yonyou.isv.demo.openapi.entity.input_ticket;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description: 进项受票-采购台账构造参数
 * @Author: jiaoguojin
 * @Date: 2022/8/2 15:18
 */
public class PurchaseAccountParam {
    /**
     * 构造 更新业务台账的业务单据号及类型 参数
     * @return
     */
    public static Map<String, Object> updateSrcbill() {
        Map<String, Object> paramsMap = new HashMap<String, Object>();
        paramsMap.put("nsrsbh", "123456789jgj");
        paramsMap.put("orgcode", "test01_jgj");
        List<Map<String, Object>> invoices = new ArrayList<>();
        Map<String, Object> invoice = new HashMap<String, Object>();
        invoice.put("fpDm","011002200111");
        invoice.put("fpHm","18451369");
        invoice.put("srcBillCode","srcBillCode");
        invoice.put("srcBillType","srcBillType");
        invoices.add(invoice);
        paramsMap.put("invoices",invoices);
        return paramsMap;
    }
}
